package com.net.xpay.core.constant;

import java.util.concurrent.atomic.AtomicInteger;

public class PayslipAtomicInteger {
    // 计数
    public static AtomicInteger num = new AtomicInteger(0);

    public static int incrementNum() {
       return num.incrementAndGet();
    }

    public static void setNum(int number){
        num.set(number);
    }

    public static int getNum() {
        return num.get();
    }
}
